import request from "../utils/request";

//查询班级数据
export const queryClazzApi = (name,begin,end,page,pageSize) =>
  request.get(`/clazzs?name=${name}&begin=${begin}&end=${end}&page=${page}&pageSize=${pageSize}`)

//保存班级数据
export const addClazzApi = (clazzs) => request.post('/clazzs',clazzs)

//根据ID查询班级
export const queryByIdApi = (id) => request.get(`/clazzs/${id}`);

//修改班级
export const updateClazzApi = (clazzs) => request.put('/clazzs',clazzs);

//删除班级
export const deleteClazzApi = (id) => request.delete(`/clazzs/${id}`)

//查询所有班级的数据
export const queryAllApi = () => request.get('/clazzs/list')
